<?php
$id = $epg['id'];
$data = json_decode(file_get_contents('https://api.cntv.cn/epg/epginfo3?serviceId=shiyi&d='.date('Ymd').'&c='.$id));
$max = count($data->$id->program) - 1;
for($i = 0; $i <= $max; $i++) {
    echo '<li><span>'.date('H:i',$data->$id->program[$i]->st).'&nbsp&nbsp&nbsp'.$data->$id->program[$i]->t.'</span></li>';
};